// 示例：
var inApp;
function GetRequest() { // 调用url后的参数
    var url = window.location.search;
    var Request = new Object();
    if (url.indexOf("?") != -1) {
        var str = url.substr(1);
        strs = str.split("&");
        for (var i = 0; i < strs.length; i++) {
            Request[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
        }
    }
    inApp = Request["inApp"] * 1;
}
GetRequest();